package com.ice.work.moment.facade.ticket.request;

import com.honeybee.cloud.framework.validation.number.Number;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @Description 车票查询
 * @Author DELL
 * @Create 2019-05-27
 * @Since 1.0.0
 */
@Data
public class QueryTicketRequest implements Serializable {

    @NotBlank(message = "fromStation not null")
    private String fromStation;
    @NotBlank(message = "toStation not null")
    private String toStation;
    @NotNull(message = "trainDate not null")
    private Date trainDate;
    @NotNull(message = "ticketType not null")
    @Number(enableNull = false,enableValues = {1,2},message = "ticketType invalid" )
    private Integer ticketType;
}
